<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<body>
<jsp:include page="_room_header.jsp"></jsp:include>

<form action="starRoomList.do" method="post" id="form1">
	<table>
		<tr>
			<td><span id="roomIdSpan"> 查询房间 :</span></td>
			<td><input type="text" name="search" value="0"/></td>
			<td><input type="submit" class="btn"  value="查询"></input> </td>
		</tr>
		<tr>
			<td><span id="roomIdSpan"> 添加房间: </span></td>
			<td><input type="text" name="add" value="0"/></td>
			<td><input type="submit" class="btn"  value="添加"></input> </td>
		</tr>
	</table>
</form>

<table class="table table-bordered">
  <thead>
    <tr>
      <th>id</th>
      <th>房间名称</th> 
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="room" items="${list}">
    <tr>
      <td>${room.roomId}</td>
      <td>${room.name}</td>
      <td>
      	<a href="?remove=${room.roomId}" onclick="return window.confirm('确认删除 【${room.name}】(${room.roomId}) 的星级吗？');">删除星级</a>
      </td>
    </tr>
  </c:forEach>
  </tbody>
</table>
</body>
</html>